<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<table>
					<tr>
						<td class="heding" align="left">
							My favorite searches
						</td>
						<td class="heding" align="right">
						<div style="margin:0px 8px 0px 0px">
				                              <table border="0" cellspacing="0" cellpadding="0">
				                                <tr>
				                                  <td><img src="images/top/btn-grey-left.gif" alt=" " width="6" height="23" /></td>
				                                  <td class="btn-grey-middle "><div style="margin:0px 5px 6px 5px">
				                                  <a href="addToFavoriteSearches.htm" class="btn-grey-link">Add to
												favorite searches </a></div></td>
				                                  <td><img src="images/top/btn-grey-right.gif" alt=" " width="6" height="23" /></td>
				                                </tr>
				                              </table>
				                            </div>
						</td>
					</tr>
				</table>
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">


				<s:form action="deleteFavoriteSearches" theme="simple">

					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td width="100%">
									<table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<display:table name="list" pagesize="10"
												requestURI="favoriteSearches.htm" id="row" >
												<display:column title="#">
													<s:checkbox name="selectedCategory" theme="simple"
														fieldValue="%{#attr.row.id}" />
												</display:column>
												<display:column property="title" title="Name of search" />
												<display:column property="title" title="Search criteria" />
												<display:column title="Email settings" property="mailStatus" />
												<display:column title="Type" property="type" />
												<display:column autolink="true" title="Options"
													paramProperty="id" href="addToFavorite.htm" paramId="id">
													<td id="sddm" valign="top">
														<a href="#" onmouseover="mopen('<s:property value="%{#attr.row.id}"/>', this, 'right', 1)"
															onmouseout="mclosetime()">Select</a>
														<div id="<s:property value="%{#attr.row.id}"/>" onmouseover="mcancelclosetime()"
															onmouseout="mclosetime()" style="visibility: hidden">
				                                 <a href="#" class="btn-grey-link">Edit </a>
				                                 <a href="#" class="btn-grey-link">Email Settings</a>
				                                 <a href="#" class="btn-grey-link">Delete </a>
											     <a href="#" class="btn-grey-link">Add note </a>
											     <a href="#" class="btn-grey-link">Time: ending soonest </a>
				                                 <a href="#" class="btn-grey-link">Time: newly listed </a>
											     <a href="#" class="btn-grey-link">Time: ending today </a>
											     <a href="#" class="btn-grey-link">Time: new today</a>
											     <a href="#" class="btn-grey-link">Create a wanted</a>
											    </div>
											    </td>
												</display:column>
												<display:column title="Note">
													<c:out value="${row.note}"></c:out>
												</display:column>
											</display:table>
											<tr>
												<td width="100%">
												<div style="margin:0px 8px 0px 0px">
												<table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
                      <td class="btn-grey-middle1 ">
                      <s:submit name="delete" value="delete" align="left" disabled="true"
																	theme="simple" cssClass="submit-btn-common" />
                    </td>
													<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
                    </tr>
                  </table>
													</div>
												</td>
											</tr>
										</tbody>
									</table>
								</td>
							</tr>
						</tbody>
					</table>
				</s:form>